home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / graphics / d_turtle / !D_Turtle / Help < prev    next >
Encoding:
Text File  |  1994-11-04  |  5.8 KB  |  375 lines

  1. 2
  2. Supported functions:
  3.  
  4. PI - can be used to represent the
  5. mathematical constant pi.
  6.  
  7. RND - used to generate random
  8. numbers. Number MUST be enclosed
  9. in brackets:
  10.  
  11. eg MAKE A RND(100) will create a
  12. variable called A, and make it a
  13. random number between 1 and 100.
  14.  
  15. COS & SIN - also supported,
  16. angles in radians not degrees.
  17.  
  18. NB. Functions MUST be in capitals.
  19. 3
  20. General Information
  21.  
  22. The middle of the screen is
  23. 476 units across and 340 units up.
  24.  
  25. The bottom left position is 0,0.
  26.  
  27. The screen drawing area is 952x680
  28. units.
  29.  
  30. No screen wrap is used so the
  31. turtle can move off the edge of
  32. the screen.
  33. 4
  34. BACK command:
  35.  
  36. Can be shortened to BK. Will move
  37. the turtle in the opposite
  38. direction it is facing.
  39.  
  40. Syntax:
  41.  
  42. 1. BK <number> eg BK 250
  43. 2. BK <expression> eg BK 300/30
  44. 3. BK <variable> eg BK length
  45. 5
  46. CLEAN command:
  47.  
  48. Will cause all of the drawing
  49. area to be erased. The turtle is
  50. moved to the middle of the drawing
  51. area.
  52. 6
  53. END command:
  54.  
  55. This command is used with the
  56. REPEAT command. All of the
  57. instructions between them will be
  58. repeated.
  59.  
  60. For example
  61.  REPEAT 4
  62.  FD 200
  63.  RT 90
  64.  END
  65.  
  66. See the REPEAT command also.
  67. 7
  68. FILL command:
  69.  
  70. Using this instruction will fill
  71. in the shape the turtle is inside.
  72.  
  73. If the turtle is not inside a
  74. shape then the whole screen will
  75. be filled.
  76.  
  77. Colours can be changed using the
  78. SETCOLOUR command.
  79. 8
  80. FLIPX command:
  81.  
  82. FLIPX is used to flip the current
  83. sprite about the x-axis.
  84.  
  85. Syntax: FLIPX
  86. 9
  87. FLIPY command:
  88.  
  89. FLIPY is used to flip the current
  90. sprite about the y-axis.
  91.  
  92. Syntax: FLIPY
  93. 10
  94. FORWARD command:
  95.  
  96. Can be shortened to FD. Will move
  97. the turtle forward in the current
  98. direction.
  99.  
  100. Syntax:
  101. 1. FD <number> eg FD 250
  102. 2. FD <expression> eg FD 300/30
  103. 3. FD <variable> eg FD length
  104. 11
  105. HIDE command:
  106.  
  107. This command is used to hide the
  108. turtle from view.
  109.  
  110. See also the SHOW command.
  111.  
  112. Syntax:
  113.  
  114. HIDE
  115. 12
  116. HOME command:
  117.  
  118. This command will move the turtle
  119. to the middle of the screen and
  120. set the turtle pointing straight
  121. up (0 degrees).
  122.  
  123. Drawings on screen will be left as
  124. they are.
  125.  
  126. Syntax:
  127.  
  128. HOME
  129. 13
  130. LEFT command:
  131.  
  132. Can be shortened to LT. Turns the
  133. turtle to its left in degrees.
  134.  
  135.  
  136. Syntax:
  137.  
  138. 1. LT <number> eg LT 90
  139. 2. LT <expression> eg LT 360/30
  140. 3. LT <variable> eg LT angle
  141. 14
  142. LOAD command:
  143.  
  144. This command is used to load a
  145. new sprite.
  146.  
  147. Syntax: LOAD <name> where <name>
  148. is the name of the new sprite
  149. you wish to load.
  150. 15
  151. MAKE command:
  152.  
  153. The MAKE command is used to set
  154. up variables.
  155.  
  156. Syntax:
  157. 1. MAKE <variable> <number>
  158. 2. MAKE <variable> <expression>
  159. 3. MAKE <variable> <variable>
  160.  
  161. Example: MAKE length 250
  162. 16
  163. PENDOWN command:
  164.  
  165. Puts the turtle's pen down on the
  166. page. This means the turtle will
  167. leave a trail behind as it moves
  168. around.
  169.  
  170. Use the PENUP command to stop
  171. drawing as you move.
  172. 17
  173. PENUP command:
  174.  
  175. Will 'lift' the turtle's pen off
  176. the page. This means no trail will
  177. be left behind as the turtle moves
  178. around.
  179.  
  180. Use the PENDOWN command to start
  181. drawing again.
  182. 18
  183. REPEAT command:
  184.  
  185. This will cause all of the
  186. instructions between the REPEAT
  187. and an END command to be repeated.
  188.  
  189. Syntax:
  190. 1. REPEAT <number> eg REPEAT 5
  191. 2. REPEAT <expression>
  192. 3. REPEAT <variable> eg REPEAT number
  193. 19
  194. RIGHT command:
  195.  
  196. Can be shortened to RT. Turns the
  197. turtle to its right in degrees.
  198.  
  199. Syntax:
  200. 1. RT <number> eg RT 250
  201. 2. RT <expression> eg RT 300/30
  202. 3. RT <variable> eg RT length
  203. 20
  204. SETCOLOUR command:
  205.  
  206. Can be shortened to SC.
  207.  
  208. This command is used to change the
  209. colour the turtle will draw or
  210. fill in.
  211.  
  212. Syntax:
  213. 1. SC <number> 
  214. 2. SC <expression>
  215. 3. SC <variable>
  216.  
  217. The value of the number depends on
  218. the current screen mode. To see
  219. how many colours you have see the
  220. Colours entry on the main menu.
  221. 21
  222. SETHEADING command:
  223.  
  224. Can be shortened to SH.
  225.  
  226. This command will force the turtle
  227. to point in the new direction.
  228.  
  229. Syntax: SETHEADING <angle>
  230. 22
  231. SETNIB command:
  232.  
  233. Use this command to set the
  234. thickness of the pen (1 is the 
  235. default value).
  236.  
  237. Syntax: SETNIB <number>
  238. 23
  239. SETPITCH command:
  240.  
  241. Causes the sound effect to be
  242. replayed at a faster or slower
  243. rate - changing the pitch.
  244.  
  245. Syntax:
  246. 1. SETPITCH <number> 
  247. 2. SETPITCH <expression>
  248. 3. SETPITCH <variable>
  249.            
  250. The values should be in the
  251. range -10 to 10 (0 is the
  252. default).
  253.  
  254. eg SETPITCH 0 is normal
  255.    SETPITCH 5 is faster
  256.    SETPITCH -3 is slower
  257. 24
  258. SETSIZE command:
  259.  
  260. Use this command to set the size
  261. of the current sprite when it is 
  262. put on screen.
  263.  
  264. Syntax: SETSIZE
  265. 25
  266. SETX command:
  267.  
  268. This command will set and move the
  269. X (horizontal) position of the
  270. turtle.
  271.  
  272. Syntax:
  273. 1. SETX <number> eg SETX 100
  274. 2. SETX <expression>
  275. 3. SETX <variable>
  276.  
  277. NB The heading of the turtle is
  278. not changed.
  279. 26
  280. SETY command:
  281.  
  282. This command will set and move the
  283. Y (vertical) position of the
  284. turtle.
  285.  
  286. Syntax:
  287. 1. SETY <number> eg SETY 100
  288. 2. SETY <expression>
  289. 3. SETY <variable>
  290.  
  291. NB The heading of the turtle is
  292. not changed.
  293. 27
  294. SHOW command:
  295.  
  296. Use this command to show the
  297. turtle on screen.
  298.  
  299. See also the HIDE command.
  300. 28
  301. SOUND command:
  302.  
  303. Will cause the computer to produce
  304. a sound effect.
  305.  
  306. Syntax: SOUND
  307. 29
  308. SPRITE command:
  309.  
  310. Draws the stored sprite onto the
  311. screen at the turtle position.
  312.  
  313. Syntax: SPRITE
  314. 30
  315. SYMON command:
  316.  
  317. This command turns the symmetry
  318. on.
  319.  
  320. Syntax: SYMON
  321.  
  322. Two axes of symmetry are placed
  323. (invisibly) on the screen at the
  324. centre point - one vertical and
  325. one horizontal.
  326.  
  327. As the turtle draws, symmetrical
  328. lines are drawn. Note that
  329. sprites will NOT be affected by
  330. this command.
  331. 31
  332. SYMOFF command:
  333.  
  334. This command turns the symmetry
  335. off.
  336.  
  337. Syntax: SYMOFF
  338. 32
  339. TO command:
  340.  
  341. Used to create a procedure.
  342.  
  343. Syntax: TO <name> eg TO HEXAGON
  344.  
  345. The name of the procedure can
  346. contain any combination of
  347. characters (up to 10) you wish.
  348. 33
  349. WAIT command:
  350.  
  351. This command will make the
  352. computer wait before doing its
  353. next instruction.
  354.  
  355. WAIT 1 will cause it to wait one
  356. second.
  357.  
  358. Syntax:
  359. 1. WAIT <number> 
  360. 2. WAIT <expression>
  361. 3. WAIT <variable>
  362. 34
  363. WRITE command:
  364.  
  365. Causes text to be written onto
  366. the screen.
  367.  
  368. Syntax:
  369. WRITE "your text here"
  370.  
  371. NB You must put the speech marks
  372. at the beginning and end of your
  373. words.
  374. EOF
  375. EOF